package com.sun.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author SunRui
 * @description 实体类
 * @date 2024/10/9 14:50
 */
public class Movie implements Serializable {
    private static final long serialVersionUID = -3694108960895709631L;
    private int movieId; // 电影编号
    private String movieName; // 电影名称
    private String movieType; // 电影类型
    private float price; // 电影价格
    private int recommend; // 是否推荐[1:推荐,0:不推荐]
    private Date startTime; // 上映时间
    private Date endTime; // 下映时间
    private int votes; // 投票数

    @Override
    public String toString() {
        return "Movie{" +
                "movieId=" + movieId +
                ", movieName='" + movieName + '\'' +
                ", movieType='" + movieType + '\'' +
                ", price=" + price +
                ", recommend=" + recommend +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", votes=" + votes +
                '}';
    }

    public long getMovieId() {
        return movieId;
    }

    public void setMovieId(int movieId) {
        this.movieId = movieId;
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public String getMovieType() {
        return movieType;
    }

    public void setMovieType(String movieType) {
        this.movieType = movieType;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public int getRecommend() {
        return recommend;
    }

    public void setRecommend(int recommend) {
        this.recommend = recommend;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public int getVotes() {
        return votes;
    }

    public void setVotes(int votes) {
        this.votes = votes;
    }
}
